package com.zhoun.dao;

import com.zhoun.pojo.Product;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Integer productId);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer productId);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    Product selectProductBySpec(String spec);

    List<Product> getProductList();

    List<Product> getProductListByCategoryId(Integer categoryId);
}